package com.central.scheduler.common.enums;



/**
 * @author Tindy
 * @date 2021/10/31
 * @describe
 * types for whether to send warning when process ending;
 */
public enum WarningType {
    /**
     * 0 do not send warning;
     * 1 send if process success;
     * 2 send if process failed;
     * 3 send if process ending;
     */
    NONE(0, "none"),
    SUCCESS(1, "success"),
    FAILURE(2, "failure"),
    ALL(3, "all");


    WarningType(int code, String descp){
        this.code = code;
        this.descp = descp;
    }


    private final int code;
    private final String descp;

    public int getCode() {
        return code;
    }

    public String getDescp() {
        return descp;
    }
}
